package com.telit.firecommand.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.telit.firecommand.entity.CommMsgPushReceiver;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface CommMsgPushReceiverDao extends BaseMapper<CommMsgPushReceiver> {

    /**
     * 分页查询
     * @param page
     * @param receiverName
     * @return
     */
    IPage<CommMsgPushReceiver> listByPage(IPage<CommMsgPushReceiver> page,
                                          @Param("receiverName") String receiverName);

    /**
     * 查询所有推送人的手机号
     * @return
     */
    List<String> selectListByType();
}
